	.file	"bubbletest.c"
	.text
	.globl	mybubble
	.type	mybubble, @function
mybubble:
.LFB23:
	.cfi_startproc
	leal	-1(%rsi), %r9d
	jmp	.L2
.L6:
	leaq	4(%rdi), %rdx
	movq	%rdi, %rax
	movl	$0, %ecx
	jmp	.L3
.L5:
	movl	(%rax), %esi
	movl	(%rdx), %r8d
	cmpl	%r8d, %esi
	jle	.L4
	movl	%r8d, (%rax)
	movl	%esi, (%rdx)
.L4:
	addq	$4, %rax
	addq	$4, %rdx
	addl	$1, %ecx
.L3:
	cmpl	%ecx, %r9d
	jne	.L5
	subl	$1, %r9d
.L2:
	testl	%r9d, %r9d
	jne	.L6
	rep ret
	.cfi_endproc
.LFE23:
	.size	mybubble, .-mybubble
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"How many numbers do you want to input:"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"Please input %d numbers:\n"
.LC3:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movl	$.LC0, %edi
	call	puts
	leaq	12(%rsp), %rsi
	movl	$.LC1, %edi
	movl	$0, %eax
	call	__isoc99_scanf
	movl	12(%rsp), %edx
	movl	$.LC2, %esi
	movl	$1, %edi
	movl	$0, %eax
	call	__printf_chk
	movl	$0, %ebx
	jmp	.L8
.L9:
	movslq	%ebx, %rax
	leaq	16(%rsp,%rax,4), %rsi
	movl	$.LC1, %edi
	movl	$0, %eax
	call	__isoc99_scanf
	addl	$1, %ebx
.L8:
	movl	12(%rsp), %esi
	cmpl	%esi, %ebx
	jl	.L9
	leaq	16(%rsp), %rdi
	call	mybubble
	movl	$0, %ebx
	jmp	.L10
.L11:
	movslq	%ebx, %rax
	movl	16(%rsp,%rax,4), %edx
	movl	$.LC3, %esi
	movl	$1, %edi
	movl	$0, %eax
	call	__printf_chk
	addl	$1, %ebx
.L10:
	cmpl	12(%rsp), %ebx
	jl	.L11
	movl	$10, %edi
	call	putchar
	movl	$0, %eax
	movq	104(%rsp), %rcx
	xorq	%fs:40, %rcx
	je	.L12
	call	__stack_chk_fail
.L12:
	addq	$112, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609"
	.section	.note.GNU-stack,"",@progbits
